﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace StudentOP
{
    public class StudentEF
    {
        public int Id { get; set; }


        public string Name { get; set; }
        public string Sex{get;set;}
        public int Age { get; set; }


        public string Tel { get; set; }


        public string Email { get; set; }

        public int ClassId { get; set; }

        public virtual ClassesEF Class { get; set; }  //默认的约定是外键就是ClassId，关联属性就是外键的名字去掉id ----Class

        public DateTime AddTime { get; set; }
    }
}